//
//  Caculator.m
//  test
//
//  Created by sunhaiyan on 16/1/27.
//  Copyright © 2016年 sunhaiyan. All rights reserved.
//

#import "Caculator.h"

@implementation Caculator

- (Caculator *)caculator:(int (^)(int resu))block
{
   self.result = block(self.result);
    return self;
}

- (Caculator* (^)(blockA a))add
{
    return ^Caculator *(blockA a){
        self.result = a(self.result);
        return self;
    };
}

@end
